/*
 * @Descripttion: 
 * @version: @ 1.0.0
 * @Author: 朱江洲
 * @Date: 2022-01-10 13:25:10
 * @LastEditors: 朱江洲
 * @LastEditTime: 2022-01-20 10:37:53
 */
import request from "@/utils/request.js";

// - 循环任务-任务列表
export const loopList = params => {
    return request({
        method: 'get',
        url: '/task/loop/list',
        params
    })
}


// - 循环任务-任务新增
export const addLoopList = data => {
    return request({
        method: 'post',
        url: '/task/loop/add',
        data
    })
}


// 循环任务-任务修改
export const editLoopList = data => {
    return request({
        method: 'post',
        url: '/task/loop/edit',
        data
    })
}

// 循环任务-删除任务
export const delLoop = params => {
    return request({
        method: 'delete',
        url: '/task/loop/del',
        params
    })
}
// 循环任务-更换负责人
export const changeDirector = params => {
    return request({
        method: 'get',
        url: '/task/loop/changeDirector',
        params
    })
}

// - 循环任务-自动化规则-列表
export const ruleList = params => {
    return request({
        method: 'get',
        url: '/task/loop/ruleList',
        params
    })
}

// - 循环任务-自动化规则-修改

export const editRule = data => {
    return request({
        method: 'post',
        url: '/task/loop/editRule',
        data
    })
}
// - 循环任务-自动化规则-删除

export const delRule = params => {
    return request({
        method: 'delete',
        url: '/task/loop/delRule',
        params
    })
}

// - 循环任务-自动化规则-开始
export const startRule = params => {
    return request({
        method: 'get',
        url: '/task/loop/start',
        params
    })
}

// - 循环任务-自动化规则-结束
export const stopRule = params => {
    return request({
        method: 'get',
        url: '/task/loop/stop',
        params
    })
}